<!DOCTYPE html>
<html>
  <head>
    <title>WTF Test (replay)</title>
    <script>
    (function() {
      var src = 'replay-host.js';
      if (window.location.search.indexOf('replay=') != -1) {
        document.writeln('<script src="' + src + '"></scr' + 'ipt>');
      }
    })();
    </script>
  </head>
  <body>
    <div id="a">
      <div id="b">
        <div id="c">
          hi
          <div>
            bi
          </div>
        </div>
      </div>
    </div>
    <script>
      document.getElementById('a').addEventListener('click', function(e) {
        console.log('a ', e);
      }, false);
      document.getElementById('b').addEventListener('click', function(e) {
        console.log('b ', e);
      }, false);
      document.getElementById('c').addEventListener('click', function(e) {
        console.log('c ', e);
      }, false);
    </script>
  </body>
</html>
